package org.example.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/rd")
public class RDController {
    @GetMapping("/test/{time}")
    public String test(@PathVariable("time") long time) throws InterruptedException {
        Thread.sleep(time);
        return "test";
    }
}
